package com.supermarket.seefood51.service


import com.supermarket.seefood51.entity.UserEntity


import rx.Observable

import com.supermarket.seefood51.LOGIN_URL
import com.supermarket.seefood51.REQUEST_URL
import com.supermarket.seefood51.entity.SeaFoodEntity
import retrofit2.http.*

/**
 * Created by hpt
 * on 2017-03-24.
 */

interface HttpService {

    @FormUrlEncoded
//    @Headers("content-type:application/x-www-form-urlencoded")
    @POST(LOGIN_URL)
    fun login(@Field("wor_number") name: String,
              @Field("wor_password") pwd: String,
              @Field("device") deviceId:String): Observable<UserEntity>



    @GET(REQUEST_URL)
    fun requestList(@Query("shop_id") shop_id : String): Observable<SeaFoodEntity>


}
